package javax.servlet.jsp.sub;

import java.io.IOException;

public abstract class JspWriter extends javax.servlet.jsp.JspWriter{

	protected JspWriter(int bufferSize, boolean autoFlush) {
		super(bufferSize, autoFlush);
	}

	
	@Override
	public void write(String str) throws IOException {
		printContent(str);
		super.write(str);
	}
	@Override
	public void write(char[] cbuf) throws IOException {
		printContent(cbuf);
		super.write(cbuf);
	}
	@Override
	public void write(String str, int off, int len) throws IOException {
		printContent(str);
		super.write(str, off, len);
	}
	
	@Override
	public void write(int c) throws IOException {
		printContent(c);
		super.write(c);
	}
	
	@Override
	public void write(char[] cbuf, int off, int len) throws IOException {
		
	}
	
	public void printContent(Object o){
		System.out.println(o);
	}
}
